<{include file="header.html"}>
<script type="text/javascript">

	function validate()
	{
		var pass = document.getElementById('PASS');
        var repass = document.getElementById('REPASS');
        
        
        if(isEmptyTextBox(pass, '<{$smarty.const._LB_PASSWORD_IS_EMPTY|utf8_escape_js}>'))
			return false;
        
        if(!isValidLengthTextBox(pass, <{$smarty.const.MAX_LENGTH_PASSWORD}>, '<{$smarty.const._MSG_PASSWORD_IS_TOO_LONG|utf8_escape_js}>')){
            return false;
        }
        
        if(!isValidMinLengthTextBox(pass, <{$smarty.const.MIN_LENGTH_PASSWORD}>, '<{$smarty.const._MSG_PASSWORD_IS_TOO_SHORT|utf8_escape_js}>')){
            return false;
        }
        
        if(pass.value != repass.value){
            showErrorBubble(pass, '<{$smarty.const._LB_PASSWORD_DOESNT_MATCH|utf8_escape_js}>');
            return false;
        }
		document.user_form.submit();
	}
</script>

<div id="content">
    <div class="container">
        <div class="main-content">
            <h1 class="title"><{$smarty.const._LB_REGISTER|utf8_escape_html}></h1>
            <form action="<{$smarty.server.REQUEST_URI}>" method="post" name="user_form" id="form-booking">
			<input type="hidden" id="ID" value="<{$member->ID}>"/>
			<input type="hidden" id="act" name="act" value="<{$smarty.const.ACT_VALID_EDIT}>"/>
			<table>
				<tr>
					<td ><{$smarty.const._LB_PASSWORD|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
					<td colspan="3"><input name="PASS" id="PASS" type="password" size="<{$smarty.const.SIZE_NAME}>" value="" /></td>
				</tr>
				<tr>
					<td ><{$smarty.const._LB_REPEAT_PASSWORD|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
					<td colspan="3"><input name="REPASS" id="REPASS" type="password" size="<{$smarty.const.SIZE_NAME}>" value="" /></td>
				</tr>
				<tr>
					<td ></td>
					<td class="submit" colspan="3" style="padding-top:10px"><br />
							<button type="reset" ><{$smarty.const._LB_RESET}></button>
							<button type="button" onclick="validate()"><{$smarty.const._LB_VALIDATE}></button>
					</td>
				</tr>
			</table>
			</form>
        </div>
        <div class="sidebar">
            <{include file="right_business_hours.html"}>
			<{include file="right_service.html"}>
        </div><!--End .sidebar-->
    </div>
</div>
<{include file="footer.html"}>